<div class="modal-header">
  <h4 class="modal-title float-left"
      i18n="form title|Example: Create rbdSnapshot@@formTitle">{{ action | titlecase }} {{ resource | upperFirst }}</h4>
  <button type="button"
          class="close float-right"
          aria-label="Close"
          (click)="modalRef.hide()">
    <span aria-hidden="true">&times;</span>
  </button>
</div>
<form name="snapshotForm"
      #formDir="ngForm"
      [formGroup]="snapshotForm"
      novalidate>
  <div class="modal-body">

    <!-- Name -->
    <div class="form-group row">
      <label class="col-form-label col-sm-3"
             for="snapshotName">
        <ng-container i18n>Name</ng-container>
        <span class="required"></span>
      </label>
      <div class="col-sm-9">
        <input class="form-control"
               type="text"
               placeholder="Snapshot name..."
               id="snapshotName"
               name="snapshotName"
               formControlName="snapshotName"
               autofocus>
        <span class="invalid-feedback"
              *ngIf="snapshotForm.showError('snapshotName', formDir, 'required')"
              i18n>This field is required.</span>
      </div>
    </div>

  </div>

  <div class="modal-footer">
    <div class="button-group text-right">
      <cd-submit-button [form]="snapshotForm"
                        (submitAction)="submit()"
                        i18n="form action button|Example: Create rbdSnapshot@@formActionButton">{{ action | titlecase }} {{ resource | upperFirst }}</cd-submit-button>
      <cd-back-button [back]="modalRef.hide"
                      name="Close"
                      i18n-name>
      </cd-back-button>
    </div>
  </div>
</form>
